<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr=[10,23,56,221,75,1,44,8]
        let arr2=[12,23,56,221,44]
        function every(a) {
            let newArr=[]
             for(i=0;i<a.length;i++){
                if(10<a[i]){
                    newArr.push(a[i])
                }
            }           
            if(newArr.length==a.length){
                alert(true)
            }else{
                alert(false)
            }
            console.log(a);
            console.log(newArr);
        }
        every(arr2)
    </script>
</body>
</html>